export default {
    data(){
        return{
            pageSize:10,
            totalCount:0,
            currentPage:0,
            pageSizes:[10, 20, 50, 100]
        }
    },
    methods:{
        handleSizeChange(pageSize){
            this.pageSize = pageSize;
            if( this.pageInfoChange ){
                this.pageInfoChange(this.currentPage,this.pageSize);
            }
        },
        handleCurrentChange(currentPage){
            this.currentPage = currentPage;
            if( this.pageInfoChange ){
                this.pageInfoChange(this.currentPage,this.pageSize);
            }
        },
    }
}